<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    //路由定制cat/11 => ar/cat/id/11
    '[cat]'     => [
        ':id'   => ['ar/cat', ['method' => 'get'], ['id' => '\d+']],
    ],
    '[detail]'  => [
    	':aid'	=> ['ar/detail', ['method' => 'get'], ['aid' => '\d+']],
    ],
    '[comment]' => [
        ':aid'  => ['ar/comment', ['method' => 'get'], ['aid' => '\d+']],
    ],
    'reply'     => [
        'ar/reply', ['method' => 'post'],
    ],

];
